package com.cjkj.purchase.domain;

import java.util.Date;

import com.cjkj.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cjkj.common.annotation.Excel;

/**
 * 采购材料出库记录对象 purchase_outbound_record
 * 
 * @author cjkj
 * @date 2025-02-20
 */
public class PurchaseOutboundRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long recordId;

    /** 采购信息ID */
    @Excel(name = "采购信息ID")
    private Long purchaseId;

    /** 领用日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "领用日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date outTime;

    /** 数量 */
    @Excel(name = "数量")
    private Long quantity;

    /** 领用项目 */
    @Excel(name = "领用项目")
    private String project;

    /** 领用人 */
    @Excel(name = "领用人")
    private String person;

    /** 删除标志（0存在 2删除） */
    private String delFlag;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setPurchaseId(Long purchaseId) 
    {
        this.purchaseId = purchaseId;
    }

    public Long getPurchaseId() 
    {
        return purchaseId;
    }
    public void setOutTime(Date outTime) 
    {
        this.outTime = outTime;
    }

    public Date getOutTime() 
    {
        return outTime;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setProject(String project) 
    {
        this.project = project;
    }

    public String getProject() 
    {
        return project;
    }
    public void setPerson(String person) 
    {
        this.person = person;
    }

    public String getPerson() 
    {
        return person;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("purchaseId", getPurchaseId())
            .append("outTime", getOutTime())
            .append("quantity", getQuantity())
            .append("project", getProject())
            .append("person", getPerson())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
